package com.CST.controller.cb;


import com.CST.common.api.ResultObject;
import com.CST.dto.cb.InSourceDTO;
import com.CST.entity.cb.EtlAccount;
import com.CST.entity.cb.EtlAccvouch;
import com.CST.service.cb.IEtlAccvouchService;
import com.CST.vo.cb.InSourceVO;
import io.swagger.annotations.*;

import java.util.*;

import org.springframework.beans.factory.annotation.*;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ly
 * @since 2022-01-24
 */
@Api(tags = {"凭证数据"})
@RestController
@RequestMapping("/etlAccvouch")

public class EtlAccvouchController {

    @Autowired
    private IEtlAccvouchService accvouchService;

    @PostMapping("/getIncomeEtlAccvouchSource")
    @ApiOperation("收入数据")
    public ResultObject getIncomeEtlAccvouchSource(@RequestBody EtlAccvouch entity) {
        return accvouchService.getIncomeEtlAccvouchSource(entity);
    }

    @PostMapping("/getCostEtlAccvouchSource")
    @ApiOperation("成本数据")
    public ResultObject getCostEtlAccvouchSource(@RequestBody EtlAccvouch entity) {
        return accvouchService.getCostEtlAccvouchSource(entity);
    }


    @PostMapping("/geitNoHisSourece")
    @ApiOperation("非HIS收入明细")
    public List<InSourceVO> geitNoHisSourece(@RequestBody InSourceDTO entity) {
        return accvouchService.geitNoHisSourece(entity);
    }


    @PostMapping("/getCheckIncome")
    @ApiOperation("收入/成本-用友系统检查")
    public List<String> getCheckIncome(@RequestBody EtlAccount entity) {
        return accvouchService.getCheckIncome(entity);
    }

}

